package com.bk.util;

import java.util.Random;

/** 生成指定位数的随机数 */
public class GeneratorRandomUtil {
	
	public static String getRandom(int length) {
		String val = "";
		Random random = new Random();
		for (int i = 0; i < length; i++) {
			val += String.valueOf(random.nextInt(10));
		}
		return val;
	}
/*
	public static void main(String[] args) {
		System.out.println(getRandom(10));
	}
*/
}
